package edu.sctu.practice.class02.Wangpeng.Test26;

/**
 * Created by wp on 2015/11/13.
 */
public class Employee extends Role {
    private int salary;
    private static String ID;

    public Employee(int a,String i){
        super(a);
        setID(i);
    }
    public Employee(int a,String b,int s,String i){
        this(a,i);
        this.setName(b);
        setSalary(s);
    }
    public void setID(String i){
        ID=i;
    }
    public String getID(){
        return ID;
    }
    public void setSalary(int s){
        salary=s;
    }
    public int getSalary(){
        return salary;
    }
    public void play(){
        System.out.println("职工信息"+"姓名"+getName()+"年龄"+getAge()+"薪水"+getSalary()+"编号"+getID());
    }
    public final void sing(){
        System.out.println("--");
    }
}
